package baseFx.common.mq.impl;

import baseFx.common.mq.MqPublisher;

import java.util.List;

public class AppMqPublisher implements MqPublisher {

    @Override
    public void post(String queue, List<String> msg) {
        for (String item : msg) {
            MsgContext ctx = new MsgContext();
            ctx.queue = queue;
            ctx.data = item;
            ctx.fire(this);
        }
    }

    @Override
    public void close() {

    }
}
